import csv

from itertools import islice

data_path = "./dataset/book_train_dataset.csv"
file = csv.reader(open(data_path, "r", encoding="utf-8"))
file2 = open("dataset/new_dataset.csv", "w", encoding="utf-8", newline="")
csv_writer = csv.writer(file2)
csv_writer.writerow(["user_id", "item_id", "rating"])

for line in islice(file, 1, None):
    csv_writer.writerow([line[0], line[1], 1])


file2.close()